Birthday Plots 生日情節 <<
Previous Next >> Discussion 討論區
Exercise 36 and Solution 練習36和解決方案
This exercise is Part 4 of 4 of the birthday data exercise series. The other exercises are: Part 1, Part 2, and Part 3.
In the previous exercise we counted how many birthdays there are in each month in our dictionary of birthdays.
In this exercise, use the bokeh Python library to plot a histogram of which months the scientists have birthdays in! Because it would take a long time for you to input the months of various scientists, you can use my scientist birthday JSON file. Just parse out the months (if you don’t know how, I suggest looking at the previous exercise or its solution) and draw your histogram.
If you are using a purely web-based interface for coding, this exercise won’t work for you, since it requires installing the bokeh Python package. Now might be a good time to install Python on your own computer.
此練習是生日數據練習系列4的第4部分。其他練習是:第1部分,第2部分和第3部分。
在上一個練習中,我們在生日詞典中計算了每個月有多少個生日。
在本練習中,使用bokeh Python庫繪製科學家在哪幾個月生日的直方圖!由於輸入多個科學家的時間會花費很長時間,因此可以使用我的科學家生日JSON文件。只需解析幾個月(如果您不知道如何做,我建議您查看上一個練習或其解決方案)並繪製直方圖。
如果您使用的是純粹基於網絡的界面進行編碼,則此練習對您不起作用,因為它需要安裝bokeh Python軟件包。現在可能是在自己的計算機上安裝Python的好時機。
Birthday Plots 生日情節 <<
Previous Next >> Discussion 討論區